# $Id: PKGBUILD 65608 2012-02-21 09:35:03Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: ReNoM <renom@list.ru>

pkgname=kde4-kio-rapip
pkgver=0.2
pkgrel=2
pkgdesc="KIOSlave to browse through the PDA file system via the SynCE infrastructure"
arch=(i686 x86_64)
url="http://synce.sourceforge.net/"
license="MIT"
depends=('kdelibs' 'synce-libsynce' 'synce-librapi')
makedepends=('gcc' 'cmake' 'automoc4')
install=kde4-kio-rapip.install
source=(http://downloads.sourceforge.net/synce/$pkgname-$pkgver.tar.gz)
md5sums=('94473e10e1b4dd6040c646a8c7421d0c')

build() {
  cd "$srcdir/$pkgname-$pkgver"
  cmake -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` .
  make
}

package() {
  cd "$srcdir/$pkgname-$pkgver"
  make DESTDIR=$pkgdir install
  install -Dm0644 LICENSE $pkgdir/usr/share/licenses/kde4-kio-rapip/LICENSE
}
